/**
 * 工作单位：IT创新工作室
 * 文件名：SensorController
 * 作者：cheru
 * 日期：2019/11/29 16:07
 */
package com.itgzs.front.controller;

import com.itgzs.front.bean.Sensor;
import com.itgzs.front.service.SensorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SensorController {

    @Autowired
    private SensorService sensorService;

    @GetMapping("/sensor")
    public Sensor selectSensor(){

        return sensorService.selectSensor();
    }
}
